package cn.chenxing.module.login.view;

import cn.chenxing.domain.util.JFXBaseUtil;
import cn.chenxing.constant.VenusConstant;
import com.jfoenix.controls.JFXDecorator;
import de.felixroske.jfxsupport.AbstractFxmlView;
import de.felixroske.jfxsupport.FXMLView;
import de.felixroske.jfxsupport.GUIState;
import javafx.scene.Parent;
import org.springframework.context.annotation.Lazy;
import org.springframework.context.annotation.Scope;

/**
 * @Description 登录视图类
 * @Author maogen.ymg
 * @Date 2020/2/27 14:44
 */
@Scope("prototype")
@Lazy
@FXMLView(value = "/fxml/login/Login.fxml")
public class LoginView extends AbstractFxmlView {
    @Override
    public Parent getView() {
        JFXDecorator decorator;
        decorator = JFXBaseUtil.getDecorator(GUIState.getStage(), VenusConstant.LOGIN_TITLE, VenusConstant.ICON_URL, super.getView(), true);
        return decorator;
    }
}
